<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
  <head>
    <title>航通ITS内部OA系统</title>
    <SCRIPT type="text/javascript" src="../system/module/js/module.js"></SCRIPT>
    <script type="text/javascript">
    	
    </script>
  </head>
  
  <body onload="init()">
  	<div>
  		<s:if test='btnIds.indexOf("add")>-1'><input type="button" id="add" name ="add" value="新增" onclick="addModule()"/></s:if>
  		<s:if test='btnIds.indexOf("del")>-1'><input type="button" id="del" name ="del" value="删除" onclick="delModule()"/></s:if>
  	</div>
    <table border="1" align="center" cellspacing="0">
    	<td width="5%"><s:checkbox id="checkall" name="checkall" theme="simple" onclick="checkAll(this)"/></td>
    	<td width="15%">模块代码</td><td width="30%">模块名称</td><td width="40%">URL</td><td width="10%">操作</td>
    	<s:iterator value="modulelist">
    		<tr onclick="selectRow(${id})">
    			<td><s:checkbox id="chk" name="chk" theme="simple" /></td><td ><s:property value="code" /></td><td><s:property value="name"/></td>
    			<td><s:property value="path"/></td>
    			<td>
    				<s:if test='btnIds.indexOf("update")>-1'>
    				<input type="button" id="update" name="update" value="修改" onClick="upateModule(${id})"/>
    				</s:if>
    			</td>
    		</tr>
    	</s:iterator>
    	<tr>
			<td colspan="100" align="center"><jsp:include page="/common/turnPage.jsp"/><br></td>
		</tr>
    </table>
  </body>
</html>
